package com.example.demospringbootbean;

public class ClassCFactory1 {
    //静态工厂创建
    public static final ClassC getClassFromStaticFactory(){
        return new ClassC();
    }

    //实例工厂创建
    public ClassC getClassFromInstanceFactory(){
        return new ClassC();
    }
}
